﻿<?xml version="1.0"?><api><query><normalized><n from="Wikipedia:Extended_image_syntax" to="Wikipedia:Extended image syntax" /></normalized><pages><page pageid="447141" ns="4" title="Wikipedia:Extended image syntax" /></pages><export>&lt;mediawiki xmlns=&quot;http://www.mediawiki.org/xml/export-0.3/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://www.mediawiki.org/xml/export-0.3/ http://www.mediawiki.org/xml/export-0.3.xsd&quot; version=&quot;0.3&quot; xml:lang=&quot;en&quot;&gt;
  &lt;siteinfo&gt;

    &lt;sitename&gt;Wikipedia&lt;/sitename&gt;
    &lt;base&gt;http://en.wikipedia.org/wiki/Main_Page&lt;/base&gt;
    &lt;generator&gt;MediaWiki 1.15alpha&lt;/generator&gt;
    &lt;case&gt;first-letter&lt;/case&gt;

    &lt;namespaces&gt;
      &lt;namespace key=&quot;-2&quot;&gt;Media&lt;/namespace&gt;
      &lt;namespace key=&quot;-1&quot;&gt;Special&lt;/namespace&gt;
      &lt;namespace key=&quot;0&quot; /&gt;

      &lt;namespace key=&quot;1&quot;&gt;Talk&lt;/namespace&gt;
      &lt;namespace key=&quot;2&quot;&gt;User&lt;/namespace&gt;
      &lt;namespace key=&quot;3&quot;&gt;User talk&lt;/namespace&gt;

      &lt;namespace key=&quot;4&quot;&gt;Wikipedia&lt;/namespace&gt;
      &lt;namespace key=&quot;5&quot;&gt;Wikipedia talk&lt;/namespace&gt;
      &lt;namespace key=&quot;6&quot;&gt;File&lt;/namespace&gt;

      &lt;namespace key=&quot;7&quot;&gt;File talk&lt;/namespace&gt;
      &lt;namespace key=&quot;8&quot;&gt;MediaWiki&lt;/namespace&gt;
      &lt;namespace key=&quot;9&quot;&gt;MediaWiki talk&lt;/namespace&gt;

      &lt;namespace key=&quot;10&quot;&gt;Template&lt;/namespace&gt;
      &lt;namespace key=&quot;11&quot;&gt;Template talk&lt;/namespace&gt;
      &lt;namespace key=&quot;12&quot;&gt;Help&lt;/namespace&gt;

      &lt;namespace key=&quot;13&quot;&gt;Help talk&lt;/namespace&gt;
      &lt;namespace key=&quot;14&quot;&gt;Category&lt;/namespace&gt;
      &lt;namespace key=&quot;15&quot;&gt;Category talk&lt;/namespace&gt;

      &lt;namespace key=&quot;100&quot;&gt;Portal&lt;/namespace&gt;
      &lt;namespace key=&quot;101&quot;&gt;Portal talk&lt;/namespace&gt;
    &lt;/namespaces&gt;
  &lt;/siteinfo&gt;

  &lt;page&gt;
    &lt;title&gt;Wikipedia:Extended image syntax&lt;/title&gt;
    &lt;id&gt;447141&lt;/id&gt;
    &lt;revision&gt;
      &lt;id&gt;278498542&lt;/id&gt;

      &lt;timestamp&gt;2009-03-20T08:39:06Z&lt;/timestamp&gt;
      &lt;contributor&gt;
        &lt;username&gt;Hubscubs&lt;/username&gt;
        &lt;id&gt;378860&lt;/id&gt;

      &lt;/contributor&gt;
      &lt;comment&gt;/* Location */&lt;/comment&gt;
      &lt;text xml:space=&quot;preserve&quot;&gt;{{pp-semi-protected|small=yes}}
{{guideline|WP:EIS}}
In brief, the syntax for displaying an image is:

:'''&amp;lt;nowiki&amp;gt;[[Image:{name}|{type}|{location}|{size}|{upright}|{text}]]&amp;lt;/nowiki&amp;gt;'''

Only '''&amp;lt;nowiki&amp;gt;[[Image:{name}]]&amp;lt;/nowiki&amp;gt;''' is required. Most images should use 
'''&amp;lt;nowiki&amp;gt;[[Image:{name}|thumb|Example image caption]]&amp;lt;/nowiki&amp;gt;''' (and should not specify a size). The other details are optional and can be placed in any order.

; Type : 'thumb' / 'thumbnail', 'frame', or 'border'. Causes image to be displayed with specific formatting (see below).
; Location : 'right', 'left', 'center' or 'none'. Determines placement of the image on the page. Defaults to 'right'.
; Size : {width}px or {width}x{height}px, scales the image to be no greater than the given width and height, keeping its aspect ratio.
; Upright : for use only on images that are taller than they are wide. This scales the image differently, considering both width and height instead of only width. A parameter can be added to adjust the size: for instance &amp;quot;upright=1.5&amp;quot; will make the image larger, useful for maps or schematics that need to be larger to be readable.
; Link : Specifies that the image should act as a link to a different page.
; Text : Specifies the ''alt text'', ''title text'', or ''caption'' for the image.

It doesn't matter whether the file is from [[Wikimedia Commons]] or on Wikipedia; the same syntax is used. 

==Detailed syntax==
===Type===
Zero or one of these options may be specified to control whether or not the image is scaled down and given a border.
*&amp;quot;'''thumbnail'''&amp;quot; or &amp;quot;'''thumb'''&amp;quot;: Image is scaled down, and a box is added around the image. If a caption is written, it is shown below the image. Image defaults to placement on the 'right' unless overridden with the 'Location' attribute (see above).  The scaled image size may be specified in another option (see &amp;quot;Size&amp;quot; below), failing which a per-user preference will be used for logged-in users (see &amp;quot;thumbnail size&amp;quot; in [[Special:Preferences]]), or the default thumbnail size of 180 pixels will be used for non-logged-in users.
*&amp;quot;'''frame'''&amp;quot;: Original image size is preserved, and a box is added around the image. If a caption is written, it is shown below the image. Sizing does not work when |frame| is used. 
*(nothing specified): Original image size is preserved, no border is added around the image. Even if a caption is requested, it is '''not''' shown. If no alt text is specifically requested, then the requested caption will be used as alt text. 
*&amp;quot;'''border'''&amp;quot;: Same as if nothing is specified, but a border is added around the image.

=== Location===
Zero or one of these options may be specified to control the position of the image.
*&amp;quot;'''right'''&amp;quot;: Image including its box is placed on the right side of the page. The article text that follows the image flows around the image.
*&amp;quot;'''left'''&amp;quot;: Image including its box is placed on the left side of the page. The article text that follows the image flows around the image.
*&amp;quot;'''center'''&amp;quot;: Image including its box is placed in the center of the page. The article text that follows the image is placed below the image.
*&amp;quot;'''none'''&amp;quot;: Image including its box is placed on the left side of the page. The article text that follows the image is placed below the image.

===Size===
Zero or one of these options may be specified to control the size of the image. In the case of images with captions, if the image is already smaller than the requested size, then the image retains its original size (it is not enlarged).  In the case of images without captions, the image will be enlarged or reduced to match the requested size.
*&amp;quot;''width'''''px'''&amp;quot; (e.g. &amp;quot;100px&amp;quot;): Scales the image to make it the specified number of pixels in width.  The height is also scaled in such a way as to retain the original aspect ratio.
*&amp;quot;''width'''''x'''''height'''''px'''&amp;quot; (e.g. &amp;quot;100x150px&amp;quot;): Scales the image to be no wider and no higher than the specified number of pixels.  The image will keep its original aspect ratio.
*(nothing specified):  Uses the size specified in preferences for logged in users, uses a size determined by resolution for anonymous users.

===Link===
Ordinarily, an image acts as a hypertext link to the [[Wikipedia:Image description page|image description page]], a page with information about the image itself.  Using the link option allows an image to act as a hypertext link to a different page.  See [[Wikipedia:Images linking to articles]] for more information.
* &amp;quot;'''link='''''page name''&amp;quot;: The image will act as a hypertext link to the specified page.  The page name must not be enclosed in square brackets, and it is always interpreted as an internal link.

===Text===
Zero or more of these options may be specified to control the ''alt text'', ''title text'', and ''caption'' for the image.  The text may contain embedded wiki markup, such as links or formatting.  See [[Wikipedia:Captions]] for discussion of appropriate caption text.  See [[Wikipedia:Alternative text for images]] for discussion of appropriate alt text.
* &amp;quot;'''alt='''''alt text''&amp;quot;: The specified text will be used as the ''alt text'' for the image.
* &amp;quot;''caption or alt text''&amp;quot; (any text that is not recognised as some other part of the image syntax):  The specified text is used as a caption, or as alt text, depending on the image type.   For '''thumbnail''', '''thumb''', or '''frame''' image types, the specified text will be used as a caption.  For other image types, the specified text will be used as alt text (unless the alt text is specified explicitly via the &amp;quot;'''alt='''&amp;quot; option, in which case the text specified here will be ignored).

The actual alt text for the displayed image will be one of the following, in order of preference:
# The explicitly requested ''alt text'', if any;
# The requested ''caption or alt text'', if the image has no caption;
# The empty string, if the image has a caption

The actual title text for the hypertext link surrounding the image will be one of the following, in order of preference:
# The requested ''caption or alt text'', if any;
# The empty string, if no ''caption or alt text'' is requested.

==Syntax to use an image in uploaded size, with a caption==
To use an image as uploaded with a caption use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|frame|none|caption text]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. This is the syntax you should use to update images that used the original image markup of the form &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminsterpalace.jpg|caption text]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.

[[Image:Westminstpalace.jpg|frame|none|caption text]]

==Syntax for images with no automatic caption or formatting==
The old syntax for images without captions is &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|alt text]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;. This is rendered inline, and the specified text is used as the image's ''alt'' attribute (alternate text for programs which cannot display images, such as [[screen reader]]s) and as the ''title'' attribute (supplementary text, often displayed as a tool tip when the mouse is over the image).

See [[Wikipedia:Image markup with HTML]] for an old, deprecated, way of putting a caption under the image using HTML code.  Please use the new way of associating captions with images, as described on this page.

See [[Wikipedia:Captions]] for discussion of appropriate caption text.  See [[Wikipedia:Alternative text for images]] for discussion of appropriate alt text.

===Example===
[[Image:Westminstpalace.jpg|alt text]]

==New syntax for images==
[[Image:Westminstpalace.jpg|thumb|100px|left|The Palace of Westminster]]The new syntax is backward compatible, so articles don't have to be changed. 
In the syntax &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;Image:''filename''|''options''&amp;lt;nowiki&amp;gt;]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (e.g. &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|thumb|100px|left|The Palace of Westminster]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; shown in the left), several options can be set when including an image. Those affect the placing of the image, its size or the way the image will be presented. The options are &amp;lt;tt&amp;gt;right&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;left&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;center&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;none&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;''size''px&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;thumbnail&amp;lt;/tt&amp;gt; (&amp;lt;tt&amp;gt;thumb&amp;lt;/tt&amp;gt;), &amp;lt;tt&amp;gt;frame&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;''alternate (caption) text''&amp;lt;/tt&amp;gt;.{{clr}}

[[Image:Westminstpalace.jpg|thumb|The Palace of Westminster|200px|right|From the Thames]]
* The options can be combined, and vertical bars (&amp;quot;|&amp;quot;) are used to separate options from each other. 
* Do not put spaces around the vertical bars for readability &amp;amp;ndash; options will not be interpreted correctly. 
* The options can be put in any order.  
* An unknown option is taken as the caption text, but this will appear only if &amp;lt;tt&amp;gt;thumbnail&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;frame&amp;lt;/tt&amp;gt; are specified.  
* If there are two or more unknown options, the last one upstages the rest: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|thumb|The Palace of Westminster|200px|right|From the Thames]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown on the right).{{clr}}

Here is the description of the options other than the caption text:

; &amp;lt;tt&amp;gt;right&amp;lt;/tt&amp;gt; : [[Image:Westminstpalace.jpg|right|70px|]]The image is right-aligned, and text floats to the left of the image: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|right|70px|]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown on the right).{{clr}}
; &amp;lt;tt&amp;gt;left&amp;lt;/tt&amp;gt; : [[Image:Westminstpalace.jpg|left|70px|]]The image is left aligned, and text floats to the right of the image: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|left|70px|]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown on the left).{{clr}}
; &amp;lt;tt&amp;gt;center&amp;lt;/tt&amp;gt; : The image is centered, and...[[Image:Westminstpalace.jpg|center|70px|]]the text following the image starts below it: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|center|70px|]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown above).{{clr}}
; &amp;lt;tt&amp;gt;none&amp;lt;/tt&amp;gt; : The image is put at the left, and...[[Image:Westminstpalace.jpg|none|70px|]]the text following does not float to the right (or to the left, obviously), and starts below it: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|none|70px|]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown above).{{clr}}

:: '''Notes:'''{{clr}}
::[[Image:Westminstpalace.jpg|center|left|none|right|70px|]]The above four options are incompatible.  When used combined, the first one overrides the rest: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|center|left|none|right|70px|]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown in the center).{{clr}}

::[[Image:Westminstpalace.jpg|70px|right]]What is between the last vertical bar and the closing brackets (&amp;quot;]]&amp;quot;), void or not, is taken as the last option, and works as usual.  For instance, when the last option is &amp;lt;tt&amp;gt;right&amp;lt;/tt&amp;gt;, the image is right-aligned, and text floats to the left: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|70px|right]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown on the right).{{clr}}

::[[Image:Westminstpalace.jpg|thumb|This text is not displayed.|70px|left|]][[Image:Westminstpalace.jpg|thumb|This text is displayed.|70px|right]]In particular, if the last option is the void text (that is, if there is nothing between the last vertical bar and the closing brackets), the caption is not displayed: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|thumb|This text is not displayed.|70px|left|]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown on the left) and &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|thumb|This text is displayed.|70px|right]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown on the right).{{clr}}

; &amp;lt;tt&amp;gt;''size''px&amp;lt;/tt&amp;gt; : [[Image:Westminstpalace.jpg|right|50px|]]This option renders a version of the image that's ''[size]'' pixels wide (e.g. &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|right|50px|]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; shown on the right). Height is computed to keep [[En:aspect ratio (image)|aspect ratio]] (i.e. the shape of the image){{clr}}

:: '''Notes:'''{{clr}}
::Specifying a size does not just change the apparent image size using HTML; it actually generates a resized version of the image on the fly and links to it appropriately.  This happens whether or not you use '''size''' in conjunction with '''thumb'''.''

::This means the server does all the work of changing the image size, not the web browser of the user.  By having the server do all the work means faster downloading of pages.  It also means that larger images can be stored on the server without any slowdown by the browser (especially on dial up telephone lines.)  Only the data for the actual size on the page is transmitted.

::From [[m:MediaWiki 1.5|MediaWiki 1.5]] the default thumbnail width can be set in the preferences, so it is recommended ''not'' to specify &amp;quot;px&amp;quot;, in order to respect the users' preferences (unless, for a special reason, a specific size is required regardless of preferences, or a size is specified outside the range of widths 120–300px that can be set in the preferences).

:: If you specify a &amp;quot;frame&amp;quot; option the image will not be scaled, and no size specifiers will be in the HTML.  The image will be rendered at full size{{clr}}

:: [[Image:Westminstpalace.jpg|right|50px|80px]]When there are two or more &amp;quot;size&amp;quot; options, only the last one is valid: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|right|50px|80px]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown on the right).{{clr}}

; &amp;lt;tt&amp;gt;thumbnail&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;thumb&amp;lt;/tt&amp;gt; : [[Image:Westminstpalace.jpg|thumbnail|left|100px|]][[Image:Westminstpalace.jpg|thumb|The Palace of Westminster]]The &amp;lt;tt&amp;gt;thumbnail&amp;lt;/tt&amp;gt; (&amp;lt;tt&amp;gt;thumb&amp;lt;/tt&amp;gt;) option generates a [[En:thumbnail|thumbnail]] image. It is automatically resized when the &amp;quot;size&amp;quot; attribute is not specified. Without the options &amp;lt;tt&amp;gt;left&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;center&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;none&amp;lt;/tt&amp;gt;, the image is  normally on the right.  If the image has a caption text, it is displayed in the lower margin. E.g. &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|thumbnail|left|100px|]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown on the left) and &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|thumb|The Palace of Westminster]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown on the right).  ''Note: thumbnail (thumb) cannot be used in lists.''
{{clr}}


&amp;lt;!-- The following paragraph is supposed to show how one can display a 10 by 10 pixel image as 100 by 100, and that clicking on &amp;quot;enlarge&amp;quot; actually shows it smaller (in the original size). But it doesn't seem to work--the image is displayed 10 by 10. --&amp;gt;
[[Image:tst.png|right|thumb|100px|This is a globe, and take a look at it in [[Media:tst.png|the actual size]].]]An &amp;quot;enlarge&amp;quot;-icon is put also in the lower margin of the thumbnail. Both the image itself and the icon link to the image description page with the image in its actual size. The icon shows the link title &amp;quot;Enlarge&amp;quot; in its hoverbox, even in cases where this term does not apply, because it leads from the enlarged image to the one with the actual size. E.g. &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:tst.png|right|thumb|100px|This is a globe, and take a look at it in [[Media:tst.png|the actual size]].]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; (shown on the right).{{clr}}

; &amp;lt;tt&amp;gt;frame&amp;lt;/tt&amp;gt; : [[Image:Westminstpalace.jpg|frame|thumbnail|50px|The Palace of Westminster]]With this option, the embedded image is shown with its actual size enclosed by a frame, regardless of the &amp;quot;thumb&amp;quot; or &amp;quot;size&amp;quot; attribute, and the caption, if any, is visible in the frame. Without the options &amp;lt;tt&amp;gt;left&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;center&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;none&amp;lt;/tt&amp;gt;, the image is  normally on the right: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|frame|thumbnail|50px|The Palace of Westminster]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;.{{clr}}

With none of the options other than &amp;lt;tt&amp;gt;''size''px&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;''alternate (caption) text''&amp;lt;/tt&amp;gt;, an embedded image is rendered inline.


&amp;lt;pre&amp;gt;
text text text text text text
&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|150px|The Palace of Westminster]]&amp;lt;/nowiki&amp;gt;
text text text text text
&amp;lt;nowiki&amp;gt;[[Image:tst.png|100px|This is a globe.]]&amp;lt;/nowiki&amp;gt;
text text text text
&amp;lt;/pre&amp;gt;

gives

text text text text text text
[[Image:Westminstpalace.jpg|150px|The Palace of Westminster]]
text text text text text
[[Image:tst.png|100px|This is a globe.]]
text text text text

The option &amp;lt;tt&amp;gt;none&amp;lt;/tt&amp;gt; can be used to have thumbnails without left- or right-alignment. This is probably most useful for [[Wikipedia:How to use tables|tables]]. This is an example:

{| class=&amp;quot;wikitable&amp;quot;
!colspan=3| How to use &amp;lt;tt&amp;gt;none&amp;lt;/tt&amp;gt;
|----
!colspan=3| London's palaces
|----
| Palace of Westminster || [[Image:Westminstpalace.jpg|thumb|none|100px|From the Thames]] || &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|thumb|none|100px|From the Thames]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;
|----
| Buckingham Palace || [[Image:Buckingham palace Copyright2003KaihsuTai.jpg|thumb|none|100px|Queen's home]] || &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;[[Image:Buckingham palace Copyright2003KaihsuTai.jpg|thumb|none|100px|Queen's home]]&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;
|}

==Thumbnail with caption text underneath that has one or more links==
From MediaWiki 1.3, it is also possible to include links in the caption text, e.g.:


&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|right|thumbnail|This is the [[Palace of Westminster]] in London]]&amp;lt;/nowiki&amp;gt;

[[Image:Westminstpalace.jpg|right|thumbnail|This is the [[Palace of Westminster]] in London]]

&amp;lt;br style=&amp;quot;clear:both;&amp;quot;/&amp;gt;

Just make sure the number of opening and closing square brackets are right. One extra or missing would mean the entire image syntax line would not work.

==Additional caption formatting options==
Additional caption formatting options are possible.

&amp;lt;nowiki&amp;gt;[[Image:Westminstpalace.jpg|right|thumbnail|&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;This is &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;the &amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt; [[Palace of Westminster]]&amp;lt;br /&amp;gt; '''in &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;London&amp;lt;/span&amp;gt;'''&amp;lt;/div&amp;gt;]]

&amp;lt;/nowiki&amp;gt;

[[Image:Westminstpalace.jpg|right|thumbnail|&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;This is &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;the &amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt; [[Palace of Westminster]]&amp;lt;br /&amp;gt; '''in &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;London&amp;lt;/span&amp;gt;'''&amp;lt;/div&amp;gt;]]


&amp;lt;br clear=&amp;quot;right&amp;quot; /&amp;gt;
All of the normal text formatting options work.

== Compatibility considerations ==
The floating options ''left'', ''center'', and ''right'' explained above are supported by modern browsers, but have unfortunately no effect with legacy browsers. If necessary it's simple to get a floating effect also for old browsers:

{| align=&amp;quot;right&amp;quot;
| [[Image:Westminstpalace.jpg|160px|Example]]
|}

&amp;lt;pre&amp;gt;
{| align=&amp;quot;right&amp;quot;
| [[Image:Westminstpalace.jpg|160px|Example]]
|}&amp;lt;/pre&amp;gt;

This code is not intended for general use, however. There are few, if any, instances where support for such legacy browsers is necessary.

==Cancelling floating-around-image mode==&amp;lt;!-- This section is linked from [[George Fox]] --&amp;gt;
After having had an image floating next to text, putting further text below it and again using the full width can be done with the following markup.  This blocks an image from appearing next to the material following this markup, possibly due to [[aesthetic]] reasons or a change in topics.

: '''&amp;lt;nowiki&amp;gt;&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;'''

For legacy &amp;lt;tt&amp;gt;align=&amp;quot;right&amp;quot;&amp;lt;/tt&amp;gt; (etc.) floating this
isn't good enough; legacy browsers would ignore inline
CSS. To cancel floating under all conditions the 
following markup (valid XHTML 1.0 transitional) works:

: '''&amp;lt;nowiki&amp;gt;&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;'''

The same code can be issued by using template '''&amp;lt;nowiki&amp;gt;{{clear}}&amp;lt;/nowiki&amp;gt;''' or 
'''&amp;lt;nowiki&amp;gt;{{Clr}}&amp;lt;/nowiki&amp;gt;''' or '''&amp;lt;nowiki&amp;gt;{{-}}&amp;lt;/nowiki&amp;gt;'''
in certain namespaces (En, meta).

==Linking to the image description page==
If you want to make a link to the description page for an image, use a leading colon before &amp;quot;image:&amp;quot; in an intra-wiki link, like this: &amp;lt;nowiki&amp;gt;[[:image:STS-32 crew.jpg|STS-32 crew]]&amp;lt;/nowiki&amp;gt; which yields: [[:image:STS-32 crew.jpg|STS-32 crew]]

==Images that link somewhere other than the image description page==
It is possible to make an image that links to a different page instead of to the image description page.  See [[Wikipedia:Images linking to articles]].

==Image galleries==
See [[Help:Images and other uploaded files]]

{| class=&amp;quot;toccolours collapsible collapsed&amp;quot; width=&amp;quot;315px&amp;quot;
|-
! &amp;lt;small&amp;gt;Source code&amp;lt;/small&amp;gt;
|-
| &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;gallery Caption=&amp;quot;example&amp;quot;&amp;gt;
Image:Example.png
Image:Example.png|New syntax allows for
Image:Example.png|easy production of
Image:Example.png|image galleries.
Image:Example.png
Image:Example.png

&amp;lt;/gallery&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;
|}

&amp;lt;gallery Caption=&amp;quot;example&amp;quot;&amp;gt;
Image:Example.png
Image:Example.png|New syntax allows for
Image:Example.png|easy production of
Image:Example.png|image galleries.
Image:Example.png
Image:Example.png
&amp;lt;/gallery&amp;gt;

==See also==
*[[Wikipedia:Images]] for an overview of images in Wikipedia
*[[Wikimedia Commons]] ([[:commons:Main Page|Commons Main Page]]), a free [[multimedia]] [[repository]], that you can use directly in Wikipedia and the other [[Wikimedia project]]s. You can [[upload]] new images or use the stored ones.
*[[Wikipedia:Gallery tag]] for new syntax to display multiple images
*[[Wikipedia:Image use policy]]
*[[Wikipedia:Image markup with HTML]] (this page is deprecated)
*[[Wikipedia:Picture tutorial]]
*[[Wikipedia:Finding images tutorial]]
*[[meta:Help:Images and other uploaded files]]

[[Category:Wikipedia image help|Extended image syntax]]

[[ca:Ajuda:Ús d'imatges]]
[[es:Wikipedia:Cómo se añaden imágenes]]
[[eu:Wikipedia:Irudiekin lan egiten]]
[[fr:Wikipédia:Description d'une image]]
[[gl:Wikipedia:Como_engadir_imaxes]]
[[it:Aiuto:Markup immagini]]
[[ja:Wikipedia:画像の表示]]
[[nl:Help:Gebruik_van_afbeeldingen]]
[[sv:Wikipedia:Bildmallar]]
[[uk:Вікіпедія:Розширений синтаксис зображень]]
[[ur:تصویروں کا استعمال کیسے کریں]]
[[zh:Wikipedia:延伸圖像語法]]&lt;/text&gt;
    &lt;/revision&gt;

  &lt;/page&gt;
&lt;/mediawiki&gt;
</export></query></api>